package com.exam.serviceimpl;

import com.exam.entity.Answer;
import com.exam.mapper.AnswerMapper;
import com.exam.service.AnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnswerServiceImpl implements AnswerService {

    @Autowired
    private AnswerMapper answerMapper;

    @Override
    public int addAnswerByForm(Answer answer) {

        return answerMapper.addAnswerByForm(answer);
    }

    @Override
    public List<Answer> findAnswerByBelongQu(Answer answer) {
        return answerMapper.findAnswerByBelongQu(answer);
    }


}
